@import '@/styles/common.scss';
.viewer {
  @extend.flx-center !optional;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 50vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--el-overlay-color-light);

  // 图片预览
  .viewer-box {
    @extend.flx-center !optional;
    > div {
      @extend.flx-center !optional;

      width: 100%;
      height: 100%;
      .fit-image {
        max-width: 100%;
        height: auto;
      }
    }

    z-index: 3000;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    .close {
      position: absolute;
      top: -10px;
      right: -18px;
      box-sizing: border-box;
      width: 45px;
      height: 40px;
      padding-left: 10px;
      line-height: 45px;
      color: #ffffff;
      cursor: pointer;
      background-color: #000000;
      border-top-left-radius: 50%;
      border-bottom-left-radius: 50%;
    }
  }
}
